
export default {
  cabinet: () => {
    return Promise.resolve({
      data: {
        "usageRatePower": Math.ceil(Math.random() * 500) + 2500,
        "usageRateCold": Math.ceil(Math.random() * 500) + 2500,
        "usageRateNetwork": Math.ceil(Math.random() * 500) + 2500,
        "usageRateUbit": Math.ceil(Math.random() * 500) + 2500,
        "usageRateCabinet": Math.ceil(Math.random() * 500) + 2500,
        "sumPower": Math.ceil(Math.random() * 500) + 2500,
        "sumCold": Math.ceil(Math.random() * 500) + 2500,
        "sumNetwork": Math.ceil(Math.random() * 500) + 2500,
        "sumUbit": Math.ceil(Math.random() * 500) + 2500,
        "sumCabinet": Math.ceil(Math.random() * 500) + 2500,
        "availablePower": Math.ceil(Math.random() * 500) + 2500,
        "availableCold": Math.ceil(Math.random() * 500) + 2500,
        "availableNetwork": Math.ceil(Math.random() * 500) + 2500,
        "availableUbit": Math.ceil(Math.random() * 500) + 2500,
        "availableCabinet": Math.ceil(Math.random() * 500) + 2500,
        "usePower": Math.ceil(Math.random() * 500) + 2500,
        "useCold": Math.ceil(Math.random() * 500) + 2500,
        "useNetwork": Math.ceil(Math.random() * 500) + 2500,
        "useUbit": Math.ceil(Math.random() * 500) + 2500,
        "useCabinet": Math.ceil(Math.random() * 500) + 2500,
        "unitPower": Math.ceil(Math.random() * 500) + 2500,
        "unitCold": Math.ceil(Math.random() * 500) + 2500,
        "unitNetwork": Math.ceil(Math.random() * 500) + 2500,
        "unitUbit": Math.ceil(Math.random() * 500) + 2500,
        "unitCabinet": Math.ceil(Math.random() * 500) + 2500
      }
    })
  },
  alarm: () => {
    return Promise.resolve({
      data: {
        "sealHeadAlarm": 0,
        "faultAlarm": 0,
        "levelOneAlarm": 0,
        "levelTwoAlarm": 0,
        "levelThreeAlarm": 0,
        "levelFourAlarm": 0,
        "totalAlarm": 0,
        "ualarm": 0
      }
    })
  },
  pue: () => {
    return Promise.resolve({
      data: {
        "data": "12",
        "pueStatistics": [
          {
            "addressName": "A1",
            "data": "12"
          },
          {
            "addressName": "A2",
            "data": "32"
          },
          {
            "addressName": "A3",
            "data": "22"
          }
        ]
      }
    })
  },
  pueTop5: () => {
    return Promise.resolve({
      "data": [
        {
          "pue": "1.2",
          "totalEnergy": "string",
          "itEnergy": "string",
          "addressName": "string",
          "addressId": "string"
        },
        {
          "pue": "1.1",
          "totalEnergy": "string",
          "itEnergy": "string",
          "addressName": "string",
          "addressId": "string"
        },
        {
          "pue": "1.3",
          "totalEnergy": "string",
          "itEnergy": "string",
          "addressName": "string",
          "addressId": "string"
        },
        {
          "pue": "1.4",
          "totalEnergy": "string",
          "itEnergy": "string",
          "addressName": "string",
          "addressId": "string"
        },
        {
          "pue": "1.5",
          "totalEnergy": "string",
          "itEnergy": "string",
          "addressName": "string",
          "addressId": "string"
        }
      ]
    })
  },
  space: () => {
    return Promise.resolve({
      "data": [
        {
          "wmfName": "双层双联4模方",
          "usum": 47,
          "uuse": 6,
          "leisureUu": 41,
          "utilizationRate": "0.13%"
        },
        {
          "wmfName": "双层双联4模方",
          "usum": 47,
          "uuse": 6,
          "leisureUu": 41,
          "utilizationRate": "0.13%"
        },
        {
          "wmfName": "双层双联4模方",
          "usum": 47,
          "uuse": 6,
          "leisureUu": 41,
          "utilizationRate": "0.13%"
        }
      ]
    })
  },
}